APPEND OBJECT
This command will append all animation data from an X file into the specified X file object.
APPEND OBJECT Filename, Object Number, Start Frame
Filename
String
The object number
Object Number
Integer
The new animation data will begin from this start frame specified and up to the length of the files animation data
Start Frame
Integer
This value is an integer number such as 1.
This command does not return a value.
The new animation data will begin from the start frame specified up to the length of the files animation data. Ensure that the 3D object being appended uses the same limb names as the original object, otherwise the load will fail. The parameters should be specified using integer values.
sync on : sync rate 0 : hide mouse:cls 0
ObjectNumber=1
load object "models\model.x",ObjectNumber
append object "models\extraanim.x", ObjectNumber, total object frames(ObjectNumber)+1
set object speed ObjectNumber,5
loop object ObjectNumber,0,total object frames(ObjectNumber)
while mouseclick()=0
sync
endwhile
while mouseclick()=1:endwhile
stop object ObjectNumber
if object exist(ObjectNumber)=1 then delete object ObjectNumber
end
BASIC3D Commands Menu
Index